-- GENERATED SPELL FOR [Anub'ar Blightbeast] --


function spell0_26607(pUnit, Event) --@Blighted Shriek,n/a--
pUnit:FullCastSpellOnTarget(47443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26607', 1000, 1)
end

function spell1_26607(pUnit, Event) --@Poison Bolt,n/a--
pUnit:FullCastSpellOnTarget(21971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26607', 12500, 1)
end

function Sorts_26607(pUnit, Event)
local choix_sorts_26607 = math.random(0, 1)
if choix_sorts_26607 == 0 then
pUnit:RegisterEvent('spell0_26607', 1, 1)
end
if choix_sorts_26607 == 1 then
pUnit:RegisterEvent('spell1_26607', 1, 1)
end
end

function mob26607_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26607', math.random(1500, 3000), 1)
end

function mob26607_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26607_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26607_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26607, 1, 'mob26607_Action')
RegisterUnitEvent(26607, 2, 'mob26607_Leave')
RegisterUnitEvent(26607, 3, 'mob26607_Kill')
RegisterUnitEvent(26607, 4, 'mob26607_Die')
